package com.matrix.async.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.matrix.async.bean.AsyncConfigurationBean;
import com.matrix.core.pojo.PaginationVO;

public interface AsyncConfigurationDao {
	public List<AsyncConfigurationBean> selectTotal();
	
	public int selectCountByTaskType(String taskType);
	
	public int insert(AsyncConfigurationBean configuration);

	public int updateByMap(Map<String, Object> modifyMap);

	public int deleteByIds(@Param("list") List<String> list);

	public int deleteByModel(@Param("record") AsyncConfigurationBean configuration);

	public List<AsyncConfigurationBean> selectInPage(@Param("record") AsyncConfigurationBean configuration,
                                                     @Param("pageVo") PaginationVO pageVo);

	public int selectTotalRecord(@Param("record") AsyncConfigurationBean configuration);

	public AsyncConfigurationBean selectById(String id);
}